#!/bin/bash
# generate messaging grammar
cd src/main/java/gatperdut/chato/core/messaging/grammar/
java -jar ../../interpreter/grammar/antlr-4.2-complete.jar MessagingGrammar.g4 -o generated
cd ../../../../../../../../
# generate command line grammar
cd src/main/java/gatperdut/chato/core/interpreter/grammar
java -jar antlr-4.2-complete.jar CommandLineGrammar.g4 -o generated
cd ../../../../../../../../